package com.fengycx.result;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CallDriverCalculatedBillResult {

    // 预估订单价格:里程费(起步价+超出)+返程费(额外返程费)
    private BigDecimal expectsOrderAmount= BigDecimal.ZERO;
    // 起步价基础里程
    private BigDecimal baseMileage;
    // 起步价格
    private BigDecimal baseMileageAmount;
    //超出起步里程每公里的单价
    private BigDecimal exceedBaseMileageAmount;
    // 超出起步价的额外总价格
    private BigDecimal mileageAmount = BigDecimal.ZERO;
    // 免费等待乘客分钟数
    private Integer freeBaseWaitingMinute;
    // 超出免费等待时长后每分钟单价
    private BigDecimal exceedEveryMinuteAmount = BigDecimal.valueOf(0.5);
    // 超出免费等时额外总价格
    private BigDecimal waitingAmount = BigDecimal.ZERO;
    // 返程免费公里数
    private BigDecimal freeBaseReturnMileage;
    // 返程超出免费公里数额外每公里单价
    private BigDecimal exceedBaseReturnEveryKmAmount;
    //返程超出免费公里数额外总价
    private BigDecimal returnAmont = BigDecimal.ZERO;
}
